package com.training.bt.service;

import com.training.bt.entity.PromotionResource;

import java.util.List;
import java.util.Optional;

public interface IPromotionResourceService {
    PromotionResource createPromotionResource(PromotionResource promotionResource);

    Optional<PromotionResource> getPromotionResourceById(Long relationId);

    List<PromotionResource> getByPromotionId(Long promotionId);

    List<PromotionResource> getByResourceId(Long resourceId);

    void deletePromotionResource(Long relationId);

    void deleteByPromotionId(Long promotionId);

    void deleteByResourceId(Long resourceId);

    double discount(Long resourceId);
}